package com.gamerole.app.viewmodel

import com.gamerole.app.repository.FirstRepository
import com.gamerole.commom.base.BaseViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import javax.inject.Inject

@HiltViewModel
class FirstViewModel @Inject constructor(private var repository: FirstRepository) :
    BaseViewModel() {
    fun add() {
        _state.value = _state.value.copy(text = "12")
    }

    private var _state = MutableStateFlow(ClickState("1"))
    var state: StateFlow<ClickState> = _state


}

data class ClickState(
    var text: String = ""
)